//
//  Predicate.h
//  xingpai
//
//  Created by 俞渊华 on 15/2/12.
//  Copyright (c) 2015年 nuoshi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Predicate : NSObject


/** 手机号码验证 */
+(BOOL)isValidPhoneNum:(NSString *)phoneNum;
+(BOOL)isValidateRegularExpression:(NSString *)strDestination byExpression:(NSString *)strExpression;
+(BOOL)isValidateTelNumber:(NSString *)number;

/**
 * 验证IP地址
 */
+ (BOOL)isIPAddress:(NSString *)address;
/*
 * 匹配密码格式
 */
+ (BOOL)checkPassword:(NSString *) password;
/*
 * 匹配用户名
 */
+(BOOL)checkUserName:(NSString *)userName;
/*
 * 匹配身份证号
 */
+ (BOOL)checkUserIdCard: (NSString *) idCard;
/*
 * 匹配银行卡
 */
+ (BOOL) checBankCardNumber: (NSString *)bankCardNumber;

+ (BOOL) checkName:(NSString *)name;

+ (BOOL)checkSearch:(NSString *)str;


+ (BOOL)checkAddress : (NSString *) address;

/**
 * 用户简介 (1-100个字)
 */
+(BOOL)checkUserMemo:(NSString *)userMemo;

+ (BOOL)validateMail:(NSString *)mail;

@end
